import com.dinmax.flash.central.communication.*

class CommunicationEvent {
	private var ID:Number;		
	private var time:Date;	
	private var type:String;
	private var data:Object;
			
	private static var ID_COUNT:Number = 0;
	public static function getIDCount():Number {
		ID_COUNT++;
		return ID_COUNT;
	};
	
	function CommunicationEvent(id:Number, time:Date) {
		this.setID(id);
		this.setTime(time);
	}
	
	public function getTime():Date {
		return time;
	}

	public function setTime(time:Date):Void {
		this.time = time;
	}

	public function getID():Number {
		return ID;
	}

	public function setID(ID:Number):Void {
		this.ID = ID;
	}
	
	public function getType():String {
		return this.type;
	}; //fin funci�n

	public function setType(type:String):Void {
		this.type = type;
	}; //fin funci�n

	public function getData():Object {
		return this.data;
	}; //fin funci�n

	public function setData(data:Object):Void {
		this.data = data;
	}; //fin funci�n
	
	
}